package models.mapper;

import java.math.BigDecimal;
import java.util.List;

import models.DrCourt;
import models.DrCourtExample;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import vos.DrCourtVo;
import vos.Node;

public interface DrCourtMapper {
    int countByExample(DrCourtExample example);

    int deleteByExample(DrCourtExample example);

    int deleteByPrimaryKey(String courtid);

    int insert(DrCourt record);

    int insertSelective(DrCourt record);

    List<DrCourt> selectByExample(DrCourtExample example);

    DrCourt selectByPrimaryKey(String courtid);

    int updateByExampleSelective(@Param("record") DrCourt record, @Param("example") DrCourtExample example);

    int updateByExample(@Param("record") DrCourt record, @Param("example") DrCourtExample example);

    int updateByPrimaryKeySelective(DrCourt record);

    int updateByPrimaryKey(DrCourt record);
    /**
     * 获取下拉列表
     * @return
     */
    @Select("select COURTID as id,COURTNAME as text from DR_COURT where status=1")
	List<Node> getCombobox();

	List<DrCourt> findCourt(DrCourtVo drCaseCourtVo);

	void betchUpdateStatus(@Param("ids")String ids, @Param("enable")BigDecimal enable);
	
	List<DrCourt> getInUseCournt(@Param("ids")String ids);
}